home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / Insert Menu / Ready-Made Scenes / Text Fonts.txt < prev   
Encoding:
Text File  |  2000-04-06  |  1.2 KB  |  73 lines

  1. // Persistence of Vision Ray Tracer Scene Description File
  2. // File: ?.pov
  3. // Vers: 3.1
  4. // Desc: Basic TTF font Example
  5. // Date: mm/dd/yy
  6. // Auth: ?
  7. //
  8.  
  9. #version 3.1
  10.  
  11. global_settings
  12. {
  13.   assumed_gamma 1.0
  14. }
  15.  
  16. // ----------------------------------------
  17. camera
  18. {
  19.   location  <0.0, 2.0, -6.0>
  20.   direction 1.5*z
  21.   right     4/3*x
  22.   look_at   <0.0, 0.0,  0.0>
  23. }
  24.  
  25. sky_sphere
  26. {
  27.   pigment
  28.   {
  29.     gradient y
  30.     color_map { [0.0 color blue 0.6] [1.0 color rgb 1] }
  31.   }
  32. }
  33.  
  34. light_source
  35. {
  36.   0*x // light's position (translated below)
  37.   color red 1.0  green 1.0  blue 1.0  // light's color
  38.   translate <-20, 10, -30>
  39. }
  40.  
  41. // ----------------------------------------
  42.  
  43. #declare Text_Tex = texture
  44. {
  45.   pigment { granite scale 0.5 }
  46.   finish { specular 0.7 }
  47. }
  48.  
  49. text
  50. {
  51.   ttf "crystal.ttf", "Hello",
  52.   2, // depth
  53.   0  // spacing
  54.   texture {Text_Tex}
  55.   rotate <0, -20, 0>
  56.   translate <-1, 0, -3>
  57. }
  58.  
  59. text
  60. {
  61.   ttf "crystal.ttf", "Virtual World!",
  62.   1, // depth
  63.   0  // spacing
  64.   scale <1, 2, 1> // stretch it taller
  65.   texture {Text_Tex}
  66.   rotate <0, -30, 0>
  67.   translate <-3, 0, 3>
  68. }
  69.  
  70.  
  71. plane { y, 0 pigment {color rgb <0.7,0.5,0.3>} }
  72.  
  73.